import request from '@/utils/request'

// 查询药品入库记录列表
export function listRecord(query) {
  return request({
    url: '/medicine/record/list',
    method: 'get',
    params: query
  })
}

// 查询药品入库记录详细
export function getRecord(storageInId) {
  return request({
    url: '/medicine/record/' + storageInId,
    method: 'get'
  })
}

// 新增药品入库记录
export function addRecord(data) {
  return request({
    url: '/medicine/record',
    method: 'post',
    data: data
  })
}

// 修改药品入库记录
export function updateRecord(data) {
  return request({
    url: '/medicine/record',
    method: 'put',
    data: data
  })
}

// 删除药品入库记录
export function delRecord(storageInId) {
  return request({
    url: '/medicine/record/' + storageInId,
    method: 'delete'
  })
}
